Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyperverse Polygon RandomPick #49

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aura-glitch
Copy link
Contributor

Dependent on #44 being merged

  • initial commit
  • added types to useRandomPick and Provider

- initial commit
- added types to useRandomPick and Provider
@jsheely
Copy link
Contributor

jsheely commented Mar 4, 2022

Awesome. I didn't see that chainlink provided an oracle for Polygon contract. This is a nice addition thank you

*/
constructor()
VRFConsumerBase(
0xb3dCcb4Cf7a26f6cf6B120Cf5A73875B7BBc655B, // VRF Coordinator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe these are the contracts for Ethereum. There is some documentation around this here

https://blog.chain.link/how-to-get-a-random-number-on-polygon/

Potential contracts

constructor() 
        VRFConsumerBase(
            0x8C7382F9D8f56b33781fE506E897a4F1e2d17255
            0x326C977E6efc84E512bB9C30f76E30c160eD06FB
        ) public
    {
        keyHash = 0x6e75b569a01ef56d18cab6a8e71e6600d6ce853834d4a5748b720d06f878b3a4;
        fee = 100000000000000; // 0.0001 LINK
    }

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsheely cool I'll make the adjustments and push when I've got time. I'm still learning how this all fits together.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsheely i think this is the blocker for the moment on this PR. I'll update my branch for testnet and then maybe we can create another issue for discussion on how to move forward on mainnet?
Screen Shot 2022-03-21 at 7 58 20 PM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jsheely do I need to generate the ABI to go along with updating the contract?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants